﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Reflection;
using Model.RF.SourceCategory;
using IDAL.RF.SourceCategory;

namespace BLL.RF.SourceCategory
{
    public class NFCheck : BaseService<NFCheckInfo>
    {
        private static readonly INFCheck dal = DALFactory.DataAccess.CreateNFCheck();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public int NFCheck_Insert(NFCheckInfo nfi)
        {
            return dal.NFCheck_Insert(nfi);
        }

        public IList<NFCheckInfo> NFCheck_GetbySN(string productSN)
        {
            return dal.NFCheck_GetbySN(productSN);
        }

        public IList<NFCheckInfo> NFCheck_GetbyDT(DateTime startTime, DateTime stopTime)
        {
            return dal.NFCheck_GetbyDT(startTime, stopTime);
        }
    }
}
